<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Bel_Grid</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Bel_Grid</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This class is needed to build grids based on a data from DB</p>
<p class="description"><p>Class uses XML files with form description, basic description of relations between  database tables and description of a grid to show data on a webpage.  'FORMS_FILES' constant should be set to define where are these XML files.  Class provides methods to build grid, set edit/delete actions.  Please, see additional documentation provided with this class.</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Konstantin Shamko &lt;<a href="mailto:konstantin.shamko@gmail.com">konstantin.shamko@gmail.com</a>&gt;</li>
				<li><span class="field">version:</span> 0.0.1</li>
				<li><span class="field">copyright:</span> Copyright (c) 2009 Konstantin Shamko</li>
				<li><span class="field">license:</span> New</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_Libs---Bel---Grid.php.html">/Libs/Bel/Grid.php</a> (line <span class="field">18</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																												
												<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#buildGrid" title="details" class="method-name">buildGrid</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$formname</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$result</span>)
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../Bel/Bel_Grid.html">Bel_Grid</a></span>
										<a href="#setAddAction" title="details" class="method-name">setAddAction</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$action</span>)
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../Bel/Bel_Grid.html">Bel_Grid</a></span>
										<a href="#setCaption" title="details" class="method-name">setCaption</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$caption</span>)
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../Bel/Bel_Grid.html">Bel_Grid</a></span>
										<a href="#setDelAction" title="details" class="method-name">setDelAction</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$action</span>)
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../Bel/Bel_Grid.html">Bel_Grid</a></span>
										<a href="#setEditAction" title="details" class="method-name">setEditAction</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$action</span>)
									</div>
								</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="methodbuildGrid" id="buildGrid"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">buildGrid</span> (line <span class="line-number">50</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Call this to get grid array</p>
	<ul class="tags">
				<li><span class="field">return:</span> - data to 'draw' grid</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			buildGrid
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$formname</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$result</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$formname</span><span class="var-description">: - name of a submitted form (also it is a name of xml file with form/tables/grid description )</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$result</span><span class="var-description">: - result of a SQL query</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetAddAction" id="setAddAction"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setAddAction</span> (line <span class="line-number">113</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Setter for add action</p>
	<ul class="tags">
				<li><span class="field">return:</span> object</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../Bel/Bel_Grid.html">Bel_Grid</a></span>
		<span class="method-name">
			setAddAction
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$action</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$action</span><span class="var-description">: - add action</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetCaption" id="setCaption"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setCaption</span> (line <span class="line-number">83</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sets frid caption</p>
	<ul class="tags">
				<li><span class="field">return:</span> object</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../Bel/Bel_Grid.html">Bel_Grid</a></span>
		<span class="method-name">
			setCaption
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$caption</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$caption</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetDelAction" id="setDelAction"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setDelAction</span> (line <span class="line-number">103</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Setter for delete action</p>
	<ul class="tags">
				<li><span class="field">return:</span> object</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../Bel/Bel_Grid.html">Bel_Grid</a></span>
		<span class="method-name">
			setDelAction
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$action</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$action</span><span class="var-description">: - delete action</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetEditAction" id="setEditAction"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setEditAction</span> (line <span class="line-number">93</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Setter for edit action</p>
	<ul class="tags">
				<li><span class="field">return:</span> object</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../Bel/Bel_Grid.html">Bel_Grid</a></span>
		<span class="method-name">
			setEditAction
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$action</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$action</span><span class="var-description">: - edit action</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Mon, 01 Mar 2010 18:58:51 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.0</a>
	</p>
	</div></body>
</html>